jQuery(document).ready(function() {
    // video
    if(window.IS_MOBILE || navigator.userAgent.match(/iPad/i) != null){
        var video_home = $('.video-wrapper .video-js').attr('id'); 
        var vid = videojs(video_home); 
        vid.on("ended", function()
            { 
                vid.controlBar.show(); //shows your controls//
                vid.bigPlayButton.show(); //hides your play button//
            });  
        vid.on("play", function()  //function to play the video again//
            {  
                vid.controlBar.show(); //shows your controls//
                vid.bigPlayButton.show(); //hides your play button//
            });
    }
});